<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<title>访客首页</title>
<style type="text/css">
    body {
        background: #1E90FF;
        padding: 10% 10% 0 10%;
    }
    a {
        //background : #fff;
        font-size: 30px;
    }
    button {
        width: 100%;
        height: 70px;
        margin: 20px 0;
        font-size: 30px;
        opacity: 0.7;
    }
</style>
<script type="text/javascript">
function addInfo(type) {
	//学生
	if (type == "1") {
		window.location.href = "info?action=add&role=1";
	}
	//老师
    if (type == "2") {
        window.location.href = "info?action=add&role=2";
    }
}
</script>
</head>
<body>
<!-- 
      <c:forEach var="role" items="${list}">
        <div>${role.role}</div>
      </c:forEach>
 -->

<a>请选择个人身份：</a><br/>
<button style="cursor:pointer" onclick="addInfo(2)">老师</button>
<button style="cursor:pointer" onclick="addInfo(1)">学生</button>

</body>
</html>